package com.fare.taluo.application.plane.income;

import java.util.List;

import com.fare.taluo.vo.core.FreightPublishVO;

public interface FreightPublishApplication {
	/**
	 * 查找所有公布运价
	 * @return
	 */
	public List<FreightPublishVO> findAll();
    
	/**
	 * 删除一个公布运价
	 * @param id
	 */
	public void remove(Long id);
    
	/**
	 * 保存或更新一个公布运价
	 * @param vo
	 */
	public void saveOrUpdate(FreightPublishVO vo);
    
	/**
	 * 根据航线查找运价
	 * 
	 */
	public FreightPublishVO findByLine(String fromCity,String toCity);
	
	
	/**
	 * 实现分页
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public List<FreightPublishVO> findFreightPublishByCondition(int pageNum, int pageSize);
	
}
